package com.lcq.demo.common.converter;

import com.lcq.demo.entity.dto.NewsDTO;
import com.lcq.demo.entity.po.News;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 240701005
 */
@Mapper
public interface NewsPOConverter {

    NewsPOConverter INSTANCE = Mappers.getMapper(NewsPOConverter.class);

    NewsDTO convertPoToDto(News news);

    List<NewsDTO> convertPoToDto(List<News> newsList);

}
